package com.lzj.service;

import com.lzj.entity.Department;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @autor:lzj
 * @date:2022/2/26
 */
public interface DepartmentService {
    Department getDepById(int id);
    List<Department> getAllDeps();
    int addDepartment(String departmentname);
    Department getDepByName(String departmentname);
    int deleteDep(int id);//删除该id的部门
    int updateDep(int id, String name);//修改部门名字

}
